package top.eggcode.modules.user.model;

import lombok.Data;
import top.eggcode.common.model.PageQuery;

import java.time.LocalDateTime;

/**
 * Title: 用户查询条件模型
 * Description: TODO
 * Date: 2021/5/6 21:16
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
public class UserQuery extends PageQuery {

    private String username;
    private String nickname;
    private String sex;
    private LocalDateTime createdAtStart;
    private LocalDateTime createdAtEnd;

    public UserQuery() {
        this.setSort("createdAt");
    }
}
